<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>JQuery YouTube Embed Exmpale</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript" src="jquery.jtube.js"></script>
<script>
	$(function() {
		var settings = {
			width: 400,
			height: 300,
			videoID: "4y9-zRpuzBs",
			preferIFrame: false,
			onPlayerReady: onPlayerReady
		};
		
		$('#youtubePlaceholder').jTube( settings );
		
		function onPlayerReady(player) {
			console.log("player ready");
		}
	});
</script>
</head>

<body>
	<div id="youtubePlaceholder"></div>
</body>
</html>
